#include "string.h"

String::String (string var)
{
  value = var;
}

String::~String ()
{
  value.clear ();
}

string
String::toString ()
{
  return value;
}

bool
String::operator== (string compareTo)
{
  return value == compareTo;
}

bool
String::operator== (String &compareTo)
{
  return value == compareTo.value;
}

bool
String::operator== (const char* compareTo)
{
  return strcmp (value.c_str (), compareTo);
}
